from scrapy.cmdline import execute
import os
import sys
import logging


if __name__ == '__main__':
    logging.basicConfig(filename='./fund.log', level=logging.WARNING)

    path=os.path.dirname(os.path.abspath(__file__))
    logging.info(path)
    sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    execute(['scrapy', 'crawl', 'FetchFund'])
